package com.itheima.behaviour.feign;

import com.itheima.behaviour.pojo.ApBehaviorEntry;
import com.itheima.common.pojo.Result;
import com.itheima.core.feign.CoreFeign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author：shenkunlin
 * @date： 2021/8/30 10:26
 * @Description：
 ***/
@FeignClient(value = "leadnews-behaviour",path = "/apBehaviorEntry")
public interface ApBehaviourEntryFeign extends CoreFeign<ApBehaviorEntry> {

    /**
     * 根据ID（设备机器号|userId）查询用户信息（游客、系统会员）
     */
    @PostMapping(value = "/entry")
    Result<ApBehaviorEntry> getByEquipmentIdOrUserId(@RequestParam(required = false) Integer equipmentId, @RequestParam(required = false) Integer userId);
}
